<div class="col-md-12">
    <div class="box panel-default col-sm-12">
        <div class="box-body">
            <div class="busi-info">
                <!-- 列表编辑-->
                {{#bs-form formLayout=formLayout model=staffModel action=(action "saveClick") invalid=(action "invalid")}}
                    <!--<div class="row">
                <div class="col-xs-12">
                    <p class="user-add-btn">
                        {{#if (eq operateFlag 'edit') }}
                            {{#if editModel}}
                                {{#ui/mix-button class="user-btn edit-btn" iconClass="fa-save" text='保存' }}
                                {{/ui/mix-button}}
                                {{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-undo" text='取消' clickAction="cancelEdit" cancelEdit="cancelEdit" clickActParams=testParams}}
                                {{/ui/mix-button}}
                            {{else}}
                                {{#ui/mix-button class="user-btn edit-btn" iconClass="fa fa-edit" text='编辑' clickAction="editModelModify" editModelModify="editModelModify" clickActParams=testParams}}
                                {{/ui/mix-button}}
                                {{#ui/mix-button class="user-btn trash-btn" iconClass="fa fa-trash-o" text='删除' clickAction="delById" delById="delById" clickActParams=testParams}}
                                {{/ui/mix-button}}
                            {{/if}}
                        {{else}}
                            {{#ui/mix-button class="user-btn edit-btn" iconClass="fa-save" text='保存' }}
                            {{/ui/mix-button}}
                            {{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-undo" text='返回' clickAction="cancelOperate" cancelOperate="cancelOperate" clickActParams=testParams}}
                            {{/ui/mix-button}}
                        {{/if}}
                    </p>
                </div>-->

                    <div class="col-sm-2 nopadding-left bott cccc img-top-padding50 margin-bottom80">
                            {{#ui/img-intergration name="avatar" hasUploader=true imgSrc=staffModel.avatarUrl height=190 width=190 margin-left=0 uploadUrl=uploadUrl uploadSucc="uploadSucc" uploadFail="uploadFailImg" businessType=constants.uploadBusinessType_headimg }}
                            {{/ui/img-intergration}}
                    </div>

                    <div style="clear:both" />
                    <div class="pull-left user-add-btn nopadding-left img-top-padding50 padding-bottom30">
                        {{#if (eq operateFlag 'edit') }}
                            {{#if editModel}}

                            {{else}}
                                {{#ui/mix-button class="user-btn trash-btn pull-right" iconClass="fa fa-trash-o" text='删除' clickAction="delById" delById="delById" clickActParams=testParams}}
                                {{/ui/mix-button}}
                                {{#ui/mix-button class=" user-btn edit-btn pull-right" iconClass="fa fa-edit" text='编辑' clickAction="editModelModify" editModelModify="editModelModify" clickActParams=testParams}}
                                {{/ui/mix-button}}
                            {{/if}}
                        {{else}}
                            {{#ui/mix-button class="user-btn times-btn pull-right" iconClass="fa fa-undo" text='返回' clickAction="cancelOperate" cancelOperate="cancelOperate" clickActParams=testParams}}
                            {{/ui/mix-button}}
                            {{#ui/mix-button class="user-btn edit-btn pull-right" iconClass="fa-save" text='保存' }}
                            {{/ui/mix-button}}
                        {{/if}}
                    </div>
                    <div class="padding-bottom10 sign col-sm-12 nopadding-left  {{if editModel "margin-top80" ""}}">
                        <strong>个人资料</strong>
                    </div>
                    <div class="line">
                        <div class="col-xs-12 col-sm-6 nopadding-left">
                            <div class="form-input-group label-normal">
                                <span class="input-group-addon">&emsp;姓名：</span>
                                {{#if (eq operateFlag 'edit')}}
                                    {{#if editModel}}
                                        {{bs-form-element property="name" class="inline-block form-input-group label-normal" controlType="name" placeholder="名称(必填)"}}
                                        <!--  {{input class="input-group-content" value=staffModel.staffName required="required" type="text" placeholder="名称"}}-->
                                    {{else}}
                                        <div class="font-light input-group-content">{{staffModel.name}}</div>
                                    {{/if}}
                                {{else}}
                                    {{bs-form-element property="name" class="inline-block form-input-group label-normal" controlType="name" placeholder="名称(必填)"}}
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6 nopadding-left">
                            <div class="form-input-group label-normal">
                                <span class="input-group-addon">&emsp;性别：</span>
                                {{#if (eq operateFlag 'edit')}}
                                    {{#if editModel}}
                                        {{#bs-form-element class="inline-block form-input-group label-normal" controlType="staffSex" property="staffSex" }}
                                            {{callbusi/dict-selector curDict=staffModel.staffSex groupCode=constants.sexType showName="性别(必填)" dictSelect="sexSelect" value=staffModel.staffSex preselected=false}}
                                        {{/bs-form-element}}
                                    {{else}}
                                        <div class="font-light input-group-content">{{staffModel.staffSex.typename}}</div>
                                    {{/if}}
                                {{else}}
                                    {{#bs-form-element class="inline-block form-input-group label-normal" controlType="staffSex" property="staffSex" }}
                                        {{callbusi/dict-selector curDict=staffModel.staffSex groupCode=constants.sexType showName="性别(必填)" dictSelect="sexSelect" value=staffModel.staffSex preselected=false}}
                                    {{/bs-form-element}}
                                {{/if}}
                            </div>
                        </div>

                        <div class="line">
                            <div class="col-xs-12 col-sm-6 nopadding-left">
                                <div class="form-input-group label-normal">
                                    <span class="input-group-addon">&emsp;家庭住址：</span>
                                    {{#if (eq operateFlag 'edit')}}
                                        {{#if editModel}}
                                            {{bs-form-element property="curAddress" class="inline-block form-input-group label-normal" controlType="curAddress" placeholder="当前住址(必填)"}}
                                        {{else}}
                                            <div class="font-light input-group-content">{{staffModel.curAddress}}</div>
                                        {{/if}}
                                    {{else}}
                                        {{bs-form-element property="curAddress" class="inline-block form-input-group label-normal" controlType="curAddress" placeholder="当前住址(必填)"}}
                                    {{/if}}
                                </div>

                            </div>
                            <div class="col-xs-12 col-sm-6 nopadding-left">
                                <div class="form-input-group label-normal">
                                    <span class="input-group-addon">&emsp;身份证号：</span>
                                    {{#if (eq operateFlag 'edit')}}
                                        {{#if editModel}}
                                            {{bs-form-element property="staffCardCode" class="inline-block form-input-group label-normal" controlType="staffCardCode" placeholder="身份证号(必填)"}}
                                        {{else}}
                                            <div class="font-light input-group-content">{{staffModel.staffCardCode}}</div>
                                        {{/if}}
                                    {{else}}
                                        {{bs-form-element property="staffCardCode" class="inline-block form-input-group label-normal" controlType="staffCardCode" placeholder="身份证号(必填)"}}
                                    {{/if}}
                                </div>

                            </div>
                        </div>
                        <div class="line">
                            <div class="col-xs-12 col-sm-6 nopadding-left">
                                <div class="form-input-group label-normal">
                                    <span class="input-group-addon">&emsp;民族：</span>
                                    {{#if (eq operateFlag 'edit')}}
                                        {{#if editModel}}
                                            {{#bs-form-element class="inline-block form-input-group" controlType="staffNation" property="staffNation" }}
                                                {{callbusi/dict-selector curDict=staffModel.staffNation groupCode=constants.nationality showName="民族(必填)" dictSelect="nationalitySelect" value=staffModel.staffNation preselected=false}}
                                            {{/bs-form-element}}
                                        {{else}}
                                            <div class="font-light input-group-content">{{staffModel.staffNation.tyepname}}</div>
                                        {{/if}}
                                    {{else}}
                                        {{#bs-form-element class="inline-block form-input-group" controlType="staffNation" property="staffNation" }}
                                            {{callbusi/dict-selector curDict=staffModel.staffNation groupCode=constants.nationality showName="民族(必填)" dictSelect="nationalitySelect" value=staffModel.staffNation preselected=false}}
                                        {{/bs-form-element}}
                                    {{/if}}
                                </div>

                            </div>
                            <div class="col-xs-12 col-sm-6 nopadding-left">
                                <div class="form-input-group label-normal">
                                    <span class="input-group-addon">&emsp;籍贯：</span>
                                    {{#if (eq operateFlag 'edit')}}
                                        {{#if editModel}}
                                            {{#bs-form-element class="inline-block form-input-group" controlType="staffCensus" property="staffCensus" }}
                                                {{callbusi/dict-selector curDict=staffModel.staffCensus groupCode=constants.nativePlace showName="籍贯(必填)" dictSelect="nativeSelect" value=staffModel.staffCensus preselected=false}}
                                            {{/bs-form-element}}
                                        {{else}}
                                            <div class="font-light input-group-content">{{staffModel.staffCensus.typename}}</div>
                                        {{/if}}
                                    {{else}}
                                        {{#bs-form-element class="inline-block form-input-group" controlType="staffCensus" property="staffCensus" }}
                                            {{callbusi/dict-selector curDict=staffModel.staffCensus groupCode=constants.nativePlace showName="籍贯(必填)" dictSelect="nativeSelect" value=staffModel.staffCensus preselected=false}}
                                        {{/bs-form-element}}
                                    {{/if}}
                                </div>

                            </div>
                        </div>
                        <div class="line">
                            <div class="col-xs-12 col-sm-6 nopadding-left">
                                <div class="form-input-group label-normal">
                                    <span class="input-group-addon">&emsp;联系电话：</span>
                                    {{#if (eq operateFlag 'edit')}}
                                        {{#if editModel}}
                                            {{bs-form-element property="staffTel" class="inline-block form-input-group label-normal" controlType="staffTel" placeholder="联系电话(必填)"}}
                                        {{else}}
                                            <div class="font-light input-group-content">{{staffModel.staffTel}}</div>
                                        {{/if}}
                                    {{else}}
                                        {{bs-form-element property="staffTel" class="inline-block inline-block form-input-group label-normal" controlType="staffTel" placeholder="联系电话(必填)"}}
                                    {{/if}}
                                </div>
                            </div>
                            <div class="col-xs-12 col-sm-6 nopadding-left">
                                <div class="form-input-group label-normal">
                                    <span class="input-group-addon">&emsp;邮箱：</span>
                                    {{#if (eq operateFlag 'edit')}}
                                        {{#if editModel}}
                                            {{input class="inline-block input-group-content" value=staffModel.staffMail type="text" placeholder="邮箱"}}
                                        {{else}}
                                            <div class="font-light input-group-content">{{staffModel.staffMail}}</div>
                                        {{/if}}
                                    {{else}}
                                        {{input class="inline-block input-group-content" value=staffModel.staffMail type="text" placeholder="邮箱"}}
                                    {{/if}}
                                </div>
                            </div>
                        </div>
                        <div class="line">
                            <div class="col-xs-12 col-sm-6 nopadding-left">
                                <div class="form-input-group label-normal">
                                    <span class="input-group-addon">&emsp;手环ID：</span>
                                    {{#if (eq operateFlag 'edit')}}
                                        {{#if editModel}}
                                            {{input class="inline-block input-group-content" value=staffModel.hbeaconID type="text" placeholder="手环ID"}}
                                        {{else}}
                                            <div class="font-light input-group-content">{{staffModel.hbeaconID}}</div>
                                        {{/if}}
                                    {{else}}
                                        {{input class="inline-block input-group-content" value=staffModel.hbeaconID type="text" placeholder="手环ID"}}
                                    {{/if}}
                                </div>
                            </div>
                            <div class="col-xs-12 col-sm-6 nopadding-left">
                                <div class="form-input-group label-normal">
                                    <span class="input-group-addon">&emsp;所属部门：</span>
                                    {{#if (eq operateFlag 'edit')}}
                                        {{#if editModel}}
                                            {{input class="inline-block input-group-content" value=staffModel.staffName type="text" placeholder="所属部门"}}
                                        {{else}}
                                            <div class="font-light input-group-content">{{staffModel.org.name}}</div>
                                        {{/if}}
                                    {{else}}
                                        {{input class="inline-block input-group-content" value=staffModel.staffName type="text" placeholder="所属部门"}}
                                    {{/if}}
                                </div>
                            </div>
                        </div>
                        <div class="line">
                            <div class="col-xs-12 col-sm-6 nopadding-left">
                                <div class="form-input-group label-normal">
                                    <span class="input-group-addon">&emsp;雇佣类型：</span>
                                    {{#if (eq operateFlag 'edit')}}
                                        {{#if editModel}}
                                            {{callbusi/dict-selector curDict=staffModel.hireType class="inline-block " groupCode=constants.hireType showName="雇佣类型" dictSelect="hireTypeSelect" preselected=false}}
                                        {{else}}
                                            <div class="font-light input-group-content">{{staffModel.hireType.typename}}</div>
                                        {{/if}}
                                    {{else}}
                                        {{callbusi/dict-selector curDict=staffModel.hireType class="inline-block " groupCode=constants.hireType showName="雇佣类型" dictSelect="hireTypeSelect" preselected=false}}
                                    {{/if}}
                                </div>
                            </div>
                            <div class="col-xs-12 col-sm-6 nopadding-left">
                                <div class="form-input-group label-normal">
                                    <span class="input-group-addon">&emsp;学历：</span>
                                    {{#if (eq operateFlag 'edit')}}
                                        {{#if editModel}}
                                            {{callbusi/dict-selector class="inline-block " curDict=staffModel.staffEducation groupCode=constants.educationLevel showName="学历" dictSelect="educationSelect" preselected=false}}
                                        {{else}}
                                            <div class="font-light input-group-content">{{staffModel.staffEducation.typename}}</div>
                                        {{/if}}
                                    {{else}}
                                        {{callbusi/dict-selector class="inline-block " curDict=staffModel.staffEducation groupCode=constants.educationLevel showName="学历" dictSelect="educationSelect" preselected=false}}
                                    {{/if}}
                                </div>
                            </div>
                        </div>
                        <div class="line">
                            <div class="col-xs-12 col-sm-6 nopadding-left">
                                <div class="form-input-group label-normal">
                                    <span class="input-group-addon">&emsp;毕业院校：</span>
                                    {{#if (eq operateFlag 'edit')}}
                                        {{#if editModel}}
                                            {{input class="inline-block input-group-content" value=staffModel.schoolName type="text" placeholder="学校名称"}}
                                        {{else}}
                                            <div class="font-light input-group-content">{{staffModel.schoolName}}</div>
                                        {{/if}}
                                    {{else}}
                                        {{input class="inline-block input-group-content" value=staffModel.schoolName type="text" placeholder="学校名称"}}
                                    {{/if}}
                                </div>
                            </div>
                            <div class="col-xs-12 col-sm-6 nopadding-left">
                                <div class="form-input-group label-normal">
                                    <span class="input-group-addon">&emsp;专业：</span>
                                    {{#if (eq operateFlag 'edit')}}
                                        {{#if editModel}}
                                            {{input class="inline-block input-group-content" value=staffModel.profession type="text" placeholder="专业名称"}}
                                        {{else}}
                                            <div class="font-light input-group-content">{{staffModel.profession}}</div>
                                        {{/if}}
                                    {{else}}
                                        {{input class="inline-block input-group-content" value=staffModel.profession type="text" placeholder="专业名称"}}
                                    {{/if}}
                                </div>
                            </div>
                        </div>
                        <div class="line">
                            <div class="col-xs-12 col-sm-6 nopadding-left">
                                <div class="form-input-group label-normal">
                                    <span class="input-group-addon">&emsp;证书名称：</span>
                                    {{#if (eq operateFlag 'edit')}}
                                        {{#if editModel}}
                                            {{input class="inline-block input-group-content" value=staffModel.certificateName type="text" placeholder="证书名称"}}
                                        {{else}}
                                            <div class="font-light input-group-content">{{staffModel.certificateName}}</div>
                                        {{/if}}
                                    {{else}}
                                        {{input class="inline-block input-group-content" value=staffModel.certificateName type="text" placeholder="证书名称"}}
                                    {{/if}}
                                </div>
                            </div>
                        </div>
                    </div>
                    <div style="clear:both" />
                    <div class="padding-bottom10 sign col-sm-12 top30 nopadding-left margin-top80">
                        <strong>联系人信息</strong>
                    </div>
                    <div class="line">
                        <div class="col-xs-12 col-sm-6 nopadding-left">
                            <div class="form-input-group label-normal">
                                <span class="input-group-addon">&emsp;联系人姓名：</span>
                                {{#if (eq operateFlag 'edit')}}
                                    {{#if editModel}}
                                        {{input class="inline-block input-group-content" value=staffModel.staffContactName type="text" placeholder="联系人姓名"}}
                                    {{else}}
                                        <div class="font-light input-group-content">{{staffModel.staffContactName}}</div>
                                    {{/if}}
                                {{else}}
                                    {{input class="inline-block input-group-content" value=staffModel.staffContactName type="text" placeholder="联系人姓名"}}
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6 nopadding-left">
                            <div class="form-input-group label-normal">
                                <span class="input-group-addon">&emsp;联系人电话：</span>
                                {{#if (eq operateFlag 'edit')}}
                                    {{#if editModel}}
                                        {{input class="inline-block input-group-content" value=staffModel.staffContactTel type="text" placeholder="联系人电话"}}
                                    {{else}}
                                        <div class="font-light input-group-content">{{staffModel.staffContactTel}}</div>
                                    {{/if}}
                                {{else}}
                                    {{input class="inline-block input-group-content" value=staffModel.staffContactTel type="text" placeholder="联系人电话"}}
                                {{/if}}
                            </div>
                        </div>
                    </div>
                    <div class="line">
                        <div class="col-xs-12 col-sm-6 nopadding-left">
                            <div class="form-input-group label-normal">
                                <span class="input-group-addon">&emsp;二者关系：</span>
                                {{#if (eq operateFlag 'edit')}}
                                    {{#if editModel}}
                                        {{callbusi/dict-selector class="inline-block " curDict=staffModel.staffContactRelation groupCode=constants.relationType showName="二者关系" dictSelect="relationTypeSelect" preselected=false}}
                                    {{else}}
                                        <div class="font-light input-group-content">{{staffModel.staffContactRelation.typename}}</div>
                                    {{/if}}
                                {{else}}
                                    {{callbusi/dict-selector class="inline-block " curDict=staffModel.staffContactRelation groupCode=constants.relationType showName="二者关系" dictSelect="relationTypeSelect" preselected=false}}
                                {{/if}}
                            </div>
                        </div>
                    </div>

                    <div style="clear:both" />
                    <div class="padding-bottom10 sign col-sm-12 top30 nopadding-left margin-top80">
                        <strong>系统资料</strong>
                    </div>
                    <div class="line">
                        <div class="col-xs-12 col-sm-6 nopadding-left">
                            <div class="form-input-group label-normal">
                                <span class="input-group-addon">&emsp;登录名：</span>
                                {{#if (eq operateFlag 'edit')}}
                                    {{#if editModel}}
                                        {{bs-form-element property="loginName" class="inline-block form-input-group label-normal" controlType="loginName" placeholder="登录名"}}
                                    {{else}}
                                        <div class="font-light input-group-content">{{staffModel.loginName}}</div>
                                    {{/if}}
                                {{else}}
                                    {{bs-form-element property="loginName" class="inline-block form-input-group label-normal" controlType="loginName" placeholder="登录名"}}
                                {{/if}}
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12 col-sm-6 nopadding-left">
                        <div class="form-input-group label-normal">
                            <span class="input-group-addon">&emsp;所属角色：</span>
                            {{#if (eq operateFlag 'edit')}}
                                {{#if editModel}}
                                    {{#power-select placeholder='角色' options=roleList selected=staffModel.role searchField="name" noMatchesMessage="没有相关内容" allowClear=allowClear onchange=(action "roleSelect" ) as |role|}}
                                        {{role.name}}
                                    {{/power-select}}
                                {{else}}
                                    <div class="font-light input-group-content">{{staffModel.role.name}}</div>
                                {{/if}}
                            {{else}}
                                {{#power-select placeholder='角色' options=roleList selected=staffModel.role searchField="name" noMatchesMessage="没有相关内容" allowClear=allowClear onchange=(action "roleSelect" ) as |role|}}
                                    {{role.name}}
                                {{/power-select}}
                            {{/if}}
                        </div>
                    </div>

                    {{#if (eq operateFlag 'edit')}}
                        {{#if editModel}}
                            <div class="line">
                                <div class="col-xs-12 col-sm-6 nopadding-left">
                                    <div class="form-input-group label-normal">
                                        <span class="input-group-addon">&emsp;系统登录密码：</span> {{input type="password" class="inline-block form-control padding0 normal-input" value=sysPassWord focus-in="changeInfo" placeholder="系统登录密码" enter='validateMCode'}}
                                    </div>

                                </div>
                                <div class="col-xs-12 col-sm-6 nopadding-left">
                                    <div class="form-input-group label-normal">
                                        <span class="input-group-addon">&emsp;app登录密码：</span> {{input type="password" class="inline-block form-control padding0 normal-input" value=appPassWord focus-in="changeInfo" placeholder="app登录密码" enter='validateMCode'}}
                                    </div>

                                </div>
                            </div>
                        {{/if}}
                    {{/if}}

                    {{#if (eq operateFlag 'add')}}
                        <div class="line">
                            <div class="col-xs-12 col-sm-6 nopadding-left">
                                <div class="form-input-group label-normal">
                                    <span class="input-group-addon">&emsp;系统登录密码：</span> {{input type="password" class="inline-block form-control padding0 normal-input" value=sysPassWord placeholder="系统登录密码" }}
                                </div>

                            </div>
                            <div class="col-xs-12 col-sm-6 nopadding-left">
                                <div class="form-input-group label-normal">
                                    <span class="input-group-addon">&emsp;app登录密码：</span> {{input type="password" class="inline-block form-control padding0 normal-input" value=appPassWord placeholder="app登录密码" }}
                                </div>
                            </div>
                        </div>
                    {{/if}}
                    <!--<div class="line">
                    <div class="col-xs-12 col-sm-6 nopadding-left">
                        <div class="form-input-group label-normal">
                            <span class="input-group-addon">&emsp;所属机构：</span>
                            {{#if (eq operateFlag 'edit')}}
                                <div class="font-light input-group-content">{{staffModel.org.name}}</div>
                            {{/if}}
                        </div>

                    </div>
                </div>-->
                    <!-- 系统密码与app密码待补充 -->
                    <div style="clear:both" />
                    <div class="text-center padding-top30 padding-bottom100">
                        <p class="text-center user-add-btn" style="display:inline-block;margin:0 auto!important ">
                            {{#if (eq operateFlag 'edit') }}
                                {{#if editModel}}
                                    {{#ui/mix-button class="user-btn edit-btn" iconClass="fa-save" text='保存' }}
                                    {{/ui/mix-button}}
                                    {{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-undo" text='取消' clickAction="cancelEdit" cancelEdit="cancelEdit" clickActParams=testParams}}
                                    {{/ui/mix-button}}
                                {{/if}}
                            {{else}}
                                {{#ui/mix-button class="user-btn edit-btn" iconClass="fa-save" text='保存' }}
                                {{/ui/mix-button}}
                                {{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-undo" text='返回' clickAction="cancelOperate" cancelOperate="cancelOperate" clickActParams=testParams}}
                                {{/ui/mix-button}}
                            {{/if}}
                        </p>
                    </div>
                {{/bs-form}}
                <!-- 列表编辑 -->
            </div>
        </div>
    </div>
</div>



{{#if showpopInvitePassModal}}
    {{#bs-modal body=false footer=false header=false submitAction=(action "invitation") closedAction=(action "delStaff" )}}
        {{#bs-modal-body}}
            <h4 class="modal-title">是否删除</h4>
        {{/bs-modal-body}}
        {{bs-modal-footer closeTitle="确定" submitTitle="取消"}}
    {{/bs-modal}}
{{/if}}
